$.ajaxSetup({
  success: function (result) {
    console.log(result);
    if (result.msg === "NOTLOGIN") {
      location.href = "login.html";
    }
  },
});

$.ajaxPrefilter((options, originalOptions, jqXHR) => {
  options.url = "http://127.0.0.1:8082" + options.url;
  options.contentType = "application/json";
});
